{% set visit = get_total_visit(request.state.config.cf_visit) %}
{% if visit %}
    <div id="visit">
        <h2>访客理货</h2>
        <ul>
            <li>
                <span>今天</span>
                <strong>{{ visit.today|number_format }}</strong>
            </li>
            <li>
                <span>昨天</span>
                <strong>{{ visit.yesterday|number_format }}</strong>
            </li>
            <li>
                <span>最大值</span>
                <strong>{{ visit.max|number_format }}</strong>
            </li>
            <li>
                <span>已满</span>
                <strong>{{ visit.total|number_format }}</strong>
            </li>
        </ul>
        {% if request.state.is_super_admin %}
            <a href="/admin/visit_list" class="btn_admin">
                <i class="fa fa-cog fa-spin fa-fw"></i>
                <span class="blind">经理</span>
            </a>
        {% endif %}
    </div>
{% endif %}